package com.example.yiqiuser.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ fileName:Result
 * @ description:封装统一返对象
 * @ author:zhz
 * @ createTime:2023/3/22 9:31
 * @ version:1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result<T> {

    //响应码
    private Integer code;
    //响应信息
    private String message;
    //返回对象  泛型，编写代码时泛指任何类型，具体使用时传入具体类型
    private T data;

}
